<?php
namespace app\resources\validate;


class NodeValidate extends  BaseValidate
{

    //定义验证规则
    protected $rule =   [
        'id'=>0,
        'remark|备注' => 'require',
        'host|节点ip' => 'require',
        'username|用户名' => 'require',
        'password|密码' => 'require',
    ];

    protected $message  =   [
        // 'remark.require' => '用户名称必填',
    ];
    
    protected $scene = [
        'add'  =>  ['remark','host','username','password'],
        'edit'  =>  ['id','remark','host','username'],
    ];  

}